<?php
require Yii::app()->basePath.'/modules/manage/util/MenuList.php';
?>
<div id="menu">
	<h6 class="selected" ><a><span>内容管理</span></a></h6>
	<ul class="opened" >
		<li class="collapsible">
			<a class="minus" >内容管理</a>
			<ul class="expanded">
                <?php
                $menuleft = $MenuList[3]['child'][0]['child'];
                $operpermissionarray = unserialize($user['admingrouppermission']['operpermissionarray']);
                if($user['user']['loginname'] == 'administrator'){
                    foreach($menuleft as $m){
                            ?>
                            <li><a href="<?php echo $m['url']; ?>"><?php echo $m['name']; ?></a></li>
                        <?php
                    }
                }else{
                    foreach($menuleft as $m){
                        if(array_key_exists($m['enkey'],$operpermissionarray)){
                            ?>
                            <li><a href="<?php echo $m['url']; ?>"><?php echo $m['name']; ?></a></li>
                        <?php
                        }
                    }
                }
                ?>
			</ul>
		</li>
	</ul>
</div>	